<?php
class Rola_Model extends Uzytkownik_Model{
        private $_user;
        public function __construct(){
            parent::__construct();
        }
        public function set($parametr)
        {
            $this->session->set('operator',$parametr);
        }
        public function set_uzytkownik($zmienna)
        {
            $this->_user=$zmienna;
        }
        public function get_uzytkownik($zmienna)
        {
            return $this->_user;
        }
        public function pobierz_role()
        {
            $zmienna = $this->db->from('rola')->select('*')->get()->result_array(false);
            return $zmienna;
        }
        public function pobierz_role_usera()
        {
            $zmienna = $this->db->from('zarzadzanie_projektem_rola')->select('nazwa')->where()->get()->result_array(false);
            return $zmienna;
        }
}
?>
